﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- saved from url=(0014)about:internet -->
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=7" />
  <title>TextGlow</title>
  <style type="text/css">
    html, body
    {
      height: 100%;
      overflow: auto;
    }
    body
    {
      padding: 0;
      margin: 0;
      font-family: Arial;
    }
    #silverlightControlHost
    {
      height: 100%;
    }
    a
    {
    	color: White;
    }
  </style>

  <script type="text/javascript">
        function createSilverlight()
        {
	        Silverlight.createObjectEx({
		        source: "ClientBin/TextGlow.Control.xap",
		        parentElement: document.getElementById("silverlightControlHost"),
		        id: "SilverlightControl",
		        properties: {
			        width: "100%",
			        height: "100%",
			        version: "2.0.31005",
			        enableHtmlAccess: "true"
		        },
		        events: {},
		        initParams:"documentPath=./Documents/TextGlow.docx"
	        });
        }
        
        function onSilverlightError(sender, args) {
            if (args.errorType == "InitializeError")  {
                var errorDiv = document.getElementById("errorLocation");
                if (errorDiv != null)
                    errorDiv.innerHTML = args.errorType + "- " + args.errorMessage;
            }
        }
        
        function SetDocument(documentUri)
        {
          var silverlightControl = document.getElementById("SilverlightControl");
          
          silverlightControl.Content.TextGlow.SetDocument(documentUri);
        }
  </script>
  <script type="text/javascript" src="Silverlight.js"></script>
</head>
<body>
  <table style="width:100%;height:100%" cellpadding="0" cellspacing="0">
    <tr>
      <td style="background-color:Black;color:White;vertical-align:top;padding:5px;">
        <h1 style="margin-top:0">Documents</h1>
        <ul style="margin-left:20px;padding-left:0px;">
          <li><a href="#" onclick="SetDocument('./documents/TextGlow.docx');return false;">TextGlow.docx</a></li>
          <li><a href="#" onclick="SetDocument('./documents/SampleDemo.docx');return false;">SampleDemo.docx</a></li>
          <li><a href="#" onclick="SetDocument('./documents/MIX08.docx');return false;">MIX08.docx</a></li>
        </ul>
      </td>
      <td style="width:3px;background-color:yellow;">
        &nbsp;
      </td>
      <td style="background-color:Black;width:80%;height:100%;text-align:center">
        <div id='errorLocation' style="font-size: small; color: Gray;">
        </div>
        <div id="silverlightControlHost">
          <script type="text/javascript">
            if (Silverlight.isInstalled("2.0"))
            {
              createSilverlight();
            }
            else
            {
              document.getElementById("silverlightControlHost").innerHTML = '<br/><br/><br/><br/><br/><br/><br/><br/><img src="./images/textglow.png" alt="TextGlow" style="border-style: none"/><br/><br/><a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></a>';
            }
          </script>
        </div>
      </td>
    </tr>
  </table>
  <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-98352-3");
    pageTracker._initData();
    pageTracker._trackPageview();
  </script>
</body>
</html>
